package cn.raven.basic.mapper;

import cn.raven.basic.query.BaseQuery;


import java.util.List;

public interface BaseMapper<T> {
    //查询所有
    List<T> findAll();
    //根据id查询
    T findOne(Long id);
    //新增
    void add(T t);
    //更新
    void update(T t);
    //删除
    void del(Long id);
    //分页+高级查询
    List<T>  queryData(BaseQuery baseQuery);
    //查询总条数
    Integer queryCount(BaseQuery baseQuery);
    //批量删除
    void batchDel(Long[] ids);
}
